﻿using Decoration.IRepository;
using Decoration.Models.Models;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Decoration.Repository
{
    public class RoleMenuRepository:BaseRepository<Base_RoleMenu>,IRoleMenuRepository
    {
        public RoleMenuRepository(DbContext ctx) : base(ctx)
        {

        }

        public void Delete(List<Base_RoleMenu> list)
        {
            ctx.Set<Base_RoleMenu>().RemoveRange(list);

        }
        public void Add(List<Base_RoleMenu> list)
        {
            ctx.Set<Base_RoleMenu>().AddRange(list);
        }
    }
}
